package com.inspur.system.domain;

import com.inspur.common.annotation.Excel;
import com.inspur.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 项目权限对象 pm_auth
 * 
 * @author ruoyi
 * @date 2024-04-22
 */
public class PmAuth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 项目权限表编号 */
    private String authId;

    /** 权限标识 */
    @Excel(name = "权限标识")
    private String authFlag;

    /** 权限名称 */
    @Excel(name = "权限名称")
    private String authName;

    /** 父类id */
    @Excel(name = "父类id")
    private String parentId;

    /** 排序 */
    @Excel(name = "排序")
    private String orderNum;

    /** M目录 C菜单 F按钮 */
    @Excel(name = "M目录 C菜单 F按钮")
    private String menuType;

    /** 菜单状态 0显示 1隐藏 */
    @Excel(name = "菜单状态 0显示 1隐藏")
    private String visible;

    /** 菜单状态 0正常 1停用 */
    @Excel(name = "菜单状态 0正常 1停用")
    private String status;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createPerson;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatePerson;

    /** 子菜单 */
    private List<PmAuth> children = new ArrayList<PmAuth>();

    public List<PmAuth> getChildren() {
        return children;
    }

    public void setChildren(List<PmAuth> children) {
        this.children = children;
    }

    public void setAuthId(String authId)
    {
        this.authId = authId;
    }

    public String getAuthId() 
    {
        return authId;
    }
    public void setAuthFlag(String authFlag) 
    {
        this.authFlag = authFlag;
    }

    public String getAuthFlag() 
    {
        return authFlag;
    }
    public void setAuthName(String authName) 
    {
        this.authName = authName;
    }

    public String getAuthName() 
    {
        return authName;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setMenuType(String menuType) 
    {
        this.menuType = menuType;
    }

    public String getMenuType() 
    {
        return menuType;
    }
    public void setVisible(String visible) 
    {
        this.visible = visible;
    }

    public String getVisible() 
    {
        return visible;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreatePerson(String createPerson) 
    {
        this.createPerson = createPerson;
    }

    public String getCreatePerson() 
    {
        return createPerson;
    }
    public void setUpdatePerson(String updatePerson) 
    {
        this.updatePerson = updatePerson;
    }

    public String getUpdatePerson() 
    {
        return updatePerson;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("authId", getAuthId())
            .append("authFlag", getAuthFlag())
            .append("authName", getAuthName())
            .append("parentId", getParentId())
            .append("orderNum", getOrderNum())
            .append("menuType", getMenuType())
            .append("visible", getVisible())
            .append("status", getStatus())
            .append("createPerson", getCreatePerson())
            .append("createTime", getCreateTime())
            .append("updatePerson", getUpdatePerson())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
